package play.go.rule;

public class Color {
    
    public static final int SPACE = 0;
    public static final int S = SPACE;
    public static final int BLACK = 1;
    public static final int B = BLACK;
    public static final int WHITE = 2;
    public static final int W = WHITE;
    public static final int OUT_OF_BOARD = 3;
    public static final int PROTECT = 4;
    public static final int P =PROTECT;

    static int opponent(int color) {
        assert color == BLACK || color == WHITE;
        return color == BLACK ? WHITE : BLACK;
    }
}
